package cn.btks.resultintegration.achievements.service;

import cn.btks.commonserver.result.ResultState;
import cn.btks.resultintegration.achievements.pojo.Achievements;
import cn.btks.resultintegration.achievements.pojo.LayerFeatures;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

/**
 * @Author lijun
 * @Date 2021/2/24 15:24
 */
public interface LayerFeaturesService {

    /**
     * 根据文件英文名查询要素管控要求
     * @param name
     * @return
     */
    LayerFeatures findByName(String name);

    /**
     * 保存图层要素管控文件
     * @param multipartFile
     * @param request
     * @return
     */
    ResultState save(MultipartFile multipartFile, HttpServletRequest request) throws IOException;

    /**
     * 更新图层要素管控文件
     * @param multipartFile
     * @param request
     * @return
     */
    ResultState update(MultipartFile multipartFile, HttpServletRequest request) throws IOException;

    /**
     * 删除所有要素
     * @return
     */
    int deleteAllFeatures();
}
